package com.seeyon.ctp.rest.resources;


import com.seeyon.apps.receiveWen.manager.ReceiveWenManager;
import com.seeyon.ctp.common.AppContext;
import com.seeyon.ctp.common.log.CtpLogFactory;
import org.apache.commons.logging.Log;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.Map;


@Path("receiveWen")
@Consumes({MediaType.APPLICATION_JSON})
@Produces(MediaType.APPLICATION_JSON)
public class ReceiveWenResources extends BaseResource {
    private static Log log = CtpLogFactory.getLog(ReceiveWenResources.class);

    private ReceiveWenManager receiveWenManager = (ReceiveWenManager) AppContext.getBean("receiveWenManager");

    @POST
    @Path("send")
    public Response send(Map<String, Object> params) {
        return success(receiveWenManager.send(params));
    }

}
